package com.java01.lang.exception;

public class DataVerifier{

	public void checkData(Object data) throws DataException{
		if(data==null){
			throw new DataException("Data is null");
		}
		//if data is corrupt, throw new DataException("Corrupt data",data);
		
		System.out.println("Data is verified");
	}
}
